﻿@{
    ViewBag.Title = "Contact";
    Layout = "~/Views/Shared/_FrontLayout.cshtml";
}
<style>
    /*.anchorBL {
        display: none;
    }*/
</style>
<div id="content">
    <section id="topbar">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <h1>联系我们</h1>
                </div>
                <div class="col-md-6 text-right">
                    <ul class="breadcrumb">
                        <li>
                            <a href="@Url.Action("Index")">首页</a>
                        </li>
                        <li class="active">联系我们</li>
                    </ul>
                </div>
            </div>
        </div>
    </section>
    <section class="fullscreen-map">
        <div id="gmap" style="width:100%;height:300px;"></div>
    </section>
    <section class="white-bg pt30 pb30">
        <div class="container">
            <div class="row">
                @Html.Action("EmailView")
                <div class="col-md-6 mt20">
                    <div class="row service-panel style2">
                        @foreach (var item in (List<Hrm.Core.Dictionary>)ViewBag.ContactInfos)
                        {
                            <div class="col-md-6 col-sm-6">
                                <div class="service-panel-heading">
                                    <i class="@item.Code color-red"></i>
                                    <h4>@item.Name</h4>
                                </div>
                                <div class="service-panel-content">
                                    <p>@item.Description</p>
                                </div>
                            </div>
                        }
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
@section JavascriptSection{
    @*<script src="http://maps.google.com/maps/api/js?sensor=true"></script>
        <script src="~/plugins/misc/gmaps/gmaps.js"></script>
            <script src="~/Scripts/pages/contact.js"></script>*@
    <script>
        function initialize() {
            var map = new BMap.Map('gmap');
            map.centerAndZoom(new BMap.Point(121.45, 31.23), 16);
            map.addControl(new BMap.NavigationControl());
            map.addControl(new BMap.ScaleControl());
            map.addControl(new BMap.OverviewMapControl());
            //map.addControl(new BMap.MapTypeControl());
            //map.setCurrentCity("北京"); // 仅当设置城市信息时，MapTypeControl的切换功能才能可用
            //var myStyleJson = [
            //{
            //    "featureType": "road",
            //    "elementType": "geometry.stroke",
            //    "stylers": {
            //        "color": "#ff0000"
            //    }
            //}];
            //mp.setMapStyle({ styleJson: myStyleJson });
        }

        function loadScript() {
            var script = document.createElement("script");
            script.src = "http://api.map.baidu.com/api?v=2.0&ak=Q0O9mkEqXfiLRRfVLUl7sHDZ&callback=initialize";//此为v2.0版本的引用方式
            document.body.appendChild(script);
        }

        window.onload = loadScript;
    </script>

}

